package com.gt.web.srv.web.api.command;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 注册绑定入参
 *
 * @author Yu Chaohua
 * @date 2024/5/18 23:14
 */
@Data
public class RegisterUserCommand  {

    private static final long serialVersionUID = -3390815209394799088L;

    @Schema(title = "昵称")
    private String nickName;

    @Schema(title = "性别")
    private String gender;

    @Schema(title = "语言")
    private String language;

    @Schema(title = "城市")
    private String city;

    @Schema(title = "省份")
    private String province;

    @Schema(title = "国家")
    private String country;

    @Schema(title = "微信头像")
    private String avatarUrl;

    @Schema(title = "openId")
    private String openId;

    @Schema(title = "unionId")
    private String unionId;

    @Schema(title = "是否户主")
    private Integer isHead;

    @Schema(title = "户主身份证号")
    private String headCard;

    @Schema(title = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String peopleName;

    @Schema(title = "手机", required = true)
    @NotBlank(message = "手机不能为空")
    private String peopleMobile;

    @Schema(title = "身份证", required = true)
    @NotBlank(message = "身份证不能为空")
    private String peopleCard;

    @Schema(title = "性别(0女 1男)", required = true)
    @NotBlank(message = "性别不能为空")
    private Integer peopleSex;

    @Schema(title = "出生年月", required = true)
    @NotBlank(message = "身份证不能为空")
    private String peopleBirth;

    @ApiModelProperty(value = "住址")
    private String peopleAddress;

    @Schema(title = "社区")
    private Integer communityId;

    @Schema(title = "网格")
    private Integer gridId;

    @Schema(title = "是否党员 0:否,1:是")
    private Integer isParty;

    @Schema(title = "是否是网格员 0:否,1:是")
    private Integer isGrid;

    @Schema(title = "是否是村委 0:否,1:是")
    private Integer isCommittee;

}
